package com.app.micaihu.view.main.game.adapter;

import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.app.micaihu.R;
import com.app.micaihu.app.AppApplication;
import com.app.micaihu.base.AppBaseAdapter;
import com.app.micaihu.bean.game.GameCenterEntity;
import com.app.micaihu.bean.game.GameCenterList;
import com.app.micaihu.configure.Config;
import com.app.micaihu.configure.UmEventId;
import com.app.micaihu.custom.view.CustomImageView;
import com.app.micaihu.custom.view.RatingBarView;
import com.app.micaihu.utils.ImageLoadUtils;
import com.app.micaihu.utils.MobclickAgentUtils;
import com.app.micaihu.view.main.game.GameDetailActivity;
import com.app.micaihu.view.main.game.GameRankingActivity;
import com.app.micaihu.view.main.game.view.RanklGameView;
import com.app.utils.util.StringUtils;
import com.app.utils.util.image.LoadImageUtils;
import com.baidu.mobstat.StatService;
import com.blankj.utilcode.util.Utils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
 *
 */
public class GameListHeaderAdapter extends BaseQuickAdapter<GameCenterList.ClassList, BaseViewHolder> {


    public GameListHeaderAdapter() {
        super(R.layout.game_list_header_item);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, GameCenterList.ClassList item) {
        ImageView view = baseViewHolder.getView(R.id.ivPic);
        ImageLoadUtils.loadImage(item.iconUrl, view);
        baseViewHolder.setText(R.id.tvTitle, item.name);
    }
}
